package com.cty.service.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.cty.dubbo.service.DemoService;
import com.cty.service.ConsumerService;
import org.apache.log4j.Logger;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Auther: cty
 * @Date: 2020/3/25 16:43
 * @Description:
 * @version: 1.0
 */
@Service
public class ConsumerServiceImpl implements ConsumerService {
    Logger log = Logger.getLogger(ConsumerServiceImpl.class);

//    @Resource
//    private xxMapper xxMapper;
    @Reference
    private DemoService demoService;

    @Override
    public void test() {
        String res = demoService.demo("李四");
        System.out.println(res);
        log.debug(res);
    }
}
